#include<iostream>
using namespace std;
#include<algorithm>
#include<stack>

class MyStack
{
private:
    stack<int> s1;
    stack<int> s2;
public:
    void myPush(int num) {
        s1.push(num);
        if(s2.empty()) {
            s2.push(num);
        } else {
            int minNum = min(num,s2.top());
            s2.push(minNum);
        }
    }

    void myPop() {
        s1.pop();
        s2.pop();
    }

    int getMinNum() {
        return s2.top();
    }
}

int main() {

}